<script>
APP = $merge(APP, {
	base: '<?php echo site_url(array('users',$usrAlias,'perbuatan'))?>',
	util: '<?php echo site_url()?>',
	onLoad: ADD_HANDLER.onLoad_add
});
</script>
<h2 style="border-bottom: 1px solid #ccc;">Draft Laporan Perbuatan :: Add</h2>
<form id="frmModal" action="<?php echo site_url(array('users',$usrAlias, 'perbuatan','ajax','draft_save')) ?>" method="post">
<input name="lapor_nik" type="hidden" maxlength="20" value="<?php echo $usrName?>" />
<h3 style="padding-bottom: 5; margin-bottom: 0">Perbuatan</h3>
<table cellpadding="5" style="margin-left: 5px" cellspacing="0" width="100%">
<tr>
	<td width="20%">Tanggal Lapor:</td>
	<td><input name="inp[3]" type="text" class="datepicker validate['required']" style="width: 180px" value="" /></td>
</tr>
<tr>
	<td>Tanggal Kejadian:</td>
	<td><input name="inp[4]" type="text" class="datepicker validate['required']" style="width: 180px" /></td>
</tr>
<tr>
	<td>Tempat Kejadian:</td>
	<td><input name="inp[5]" type="text" class="validate['required']" style="width: 300px" maxlength="45" /></td>
</tr>
<tr>
	<td valign="top"><div style="padding-top: 2px">Kategori Perbuatan:</div></td>
	<td>
		<input type="hidden" name="inp[6]" value="" />
		<input type="text" value="" disabled="disabled" class="validate['required']" />
		<input id="tpl_kategoriButton" type="button" class="button" value="Search" />
		<table id="prepel" width="100%" style="position:  relative; display: none;">
			<tr>
				<td width="50px">Jenis:</td>
				<td></td>
			</tr>
			<tr>
				<td>Bidang:</td>
				<td></td>
			</tr>
			<tr>
				<td>Tingkat:</td>
				<td></td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td>Karyawan Pelaku:</td>
	<td>
		<input id="tpl_kary1" type="text" class="validate['required']" disabled="disabled" />
		<input id="tpl_kary2" name="inp[7][0]" type="hidden" />
		<input id="tpl_kary3" type="button" class="button" value="Search" />
	</td>
</tr>
<tr>
	<td></td>
	<td><!-- <a class="fakeLink" onclick="ADD_HANDLER.more_kary(this)">tambah</a> --></td>
</tr>
<tr>
	<td valign="top"><div style="padding-top: 2px" >Keterangan:</div></td>
	<td><textarea name="inp[8]" cols="55" rows="4" class="validate['required','length[4,-1]']"></textarea></td>
</tr>
<tr>
	<td valign="top"><div style="padding-top: 2px">Bukti:</div></td>
	<td>
		<div id="fcUpload"> 
		<input id="fcUpload-check" type="hidden" class="validate['required','target:fcUpload-attach']" />
		<a href="#" id="fcUpload-attach">Attach a file</a> 
		<ul id="fcUpload-list"></ul> 
		<a href="#" id="fcUpload-attach-2" style="display: none;">Attach another file</a> 
		</div> 
 	</td>
</tr>
</table>
<div style="border-top:1px solid #ccc; text-align: center; padding-top: 10px; margin-top: 20px">
	<input type="Submit" value="Save" class="button" />
	<input type="button" value="Cancel" class="button" onclick="document.location='<?php echo site_url(array('users',$usrAlias,'perbuatan','draft')) ?>'" />
</div>
</form>
